<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="index.xhtml">
        <ui:define name="body">
            <h:form>
                <div id="breadcrumb">
                    <p:commandLink  value="Inicio" actionListener="#{managerRedirect.redirect('viewExecutor.xhtml')}" update="@form" immediate="true"/> >
                    <p:commandLink  value="Juíz" actionListener="#{managerRedirect.redirect('viewExecutor.xhtml')}" update="@form" immediate="true"/> >
                    <p:commandLink  value="Visualizar" actionListener="#{managerRedirect.redirect('showExecutor.xhtml')}" update="@form" immediate="true"/>
                </div>
            </h:form> 
            <p:panel header="Visualizar Juíz" > 
                <h:form id="form" acceptcharset="utf-8">
                    <p:growl id="msg" life="3000"/>

                    <fieldset style="border: 1px solid #E3E3E3; color: #3DA2DC; font-size: 13px;">
                        <legend>Dados do Juíz</legend>
                        <h:panelGrid  columns="2" style=" color: #000000; font-size: 12px; font-family: sans-serif"> 
                            <p:outputLabel value="Nome :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.showExecutor.name}"/>
                            <p:outputLabel value="Oab :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.showExecutor.oab}"/>
                            <p:outputLabel value="Email :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.showExecutor.oab}"/>
                            <p:outputLabel value="Orgão :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.showExecutor.organ.name}"/>
                            <p:outputLabel value="Função :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.showExecutor.function}"/>

                        </h:panelGrid>
                    </fieldset>
                    <fieldset style="border: 1px solid #E3E3E3; color: #3DA2DC; font-size: 13px;">
                        <legend>Dados do Endereço</legend>
                        <h:panelGrid  columns="2" style="font-size: 12px; color: #000000;  font-family: sans-serif"  >
                            <p:outputLabel value="Rua :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.address.street}"/>
                            <p:outputLabel value="Bairro :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.address.district}"/>
                            <p:outputLabel value="Num :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.address.num}"/>
                            <p:outputLabel value="Cep :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.address.cep}"/>
                            <p:outputLabel  value=" Cidade:" style="float: right; font-weight: bold" />
                            <p:outputLabel value="#{managerSearchExecutor.address.city.name} - #{managerSearchExecutor.address.city.states.sgl}"/>
                            <p:outputLabel value="Tel :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.address.phone}"/>
                            <p:outputLabel value="Cel :" style="float: right; font-weight: bold"/>
                            <p:outputLabel value="#{managerSearchExecutor.address.cellular}"/>
                        </h:panelGrid>
                    </fieldset>               
                    <br/>
                    <center>
                        <p:commandButton value="Voltar" icon="ui-icon-arrowreturnthick-1-w" style="font-size: 12px; font-family: sans-serif;" actionListener="#{managerRedirect.redirect('viewExecutor.xhtml')}" immediate="true"/>     
                    </center>
                </h:form>
            </p:panel> 
        </ui:define>
    </ui:composition>
</html>


